# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=guake
pkgver=3.10
pkgrel=1
pkgdesc="Drop-down terminal for GNOME"
url="http://guake-project.org/"
arch="noarch"
license="GPL-2.0-only"
depends="
	keybinder3
	libnotify
	libutempter
	libwnck3
	py3-cairo
	py3-dbus
	py3-gobject3
	py3-pbr
	py3-yaml
	python3
	vte3
	"
makedepends="
	gettext-dev
	py3-gpep517
	py3-setuptools
	py3-setuptools_scm
	py3-wheel
	python3-dev
	"
subpackages="$pkgname-lang $pkgname-pyc"
source="$pkgname-$pkgver-2.tar.gz::https://github.com/Guake/guake/archive/refs/tags/$pkgver.tar.gz
	fix-install.patch
	"
options="!check" # no tests

# secfixes:
#   3.8.5-r0:
#     - CVE-2021-23556

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
	make
}

package() {
	make COMPILE_SCHEMA=0 DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
72e5b7a046ceab0c5fedde25e7baa4e4002edc7f97867db72ed0cacc7347ca5381d74813f1ae1f61167b9c9128d87d60c7b6610b25f7abad024a2e001d3b114a  guake-3.10-2.tar.gz
29207ce672ce166a0249f74fdfd19028b07214d79f7fffd460837ed5c0b3a4bbade6ba7be66b90236f30a09fcc9932e22b1bd3920fc5a1fa77c3a35c4bf98abf  fix-install.patch
"
